package top.laoshuzi.designpatterns.base.created.abstract_factory.kotlin

/**
 * 具体工厂B
 */
class FactoryB : Factory {

    override fun makeProduct1(): Product1 {
        val product = Product1()
        product.setName("ProductB1")
        return product
    }

    override fun makeProduct2(): Product2 {
        val product = Product2()
        product.setName("ProductB2")
        return product
    }

    override fun makeProduct3(): Product3 {
        val product = Product3()
        product.setName("ProductB3")
        return product
    }

}